﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections;
using System.Collections.Generic;
using Croupier_iteration_1.Model.Jeu;

namespace Croupier_iteration_1.Model
{
    public class Main
    {
        /// <summary>
        /// Liste de carte qu'un joueur a en main
        /// </summary>
        public List<Carte> Cartes { get; set; }

        /// <summary>
        /// Permet de connaitre le total de la main.
        /// </summary>
        /// <returns></returns>
        public int getTotal()
        {
            int retour = 0;
            for (int i = 0; i < Cartes.Count; i++)
            {
                retour += Cartes[i].GetPoids();
            }
            return retour;
        }

    }
}
